Master-K Ethernet ( GLOFA GK CPU ) communication driver

 

Master-K Ethernet communication driver is the driver to communicate with GLOFA GK PLC(with ethernet communication) of LSIS Co., Ltd.  in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of MASTER-K Ethernet communication driver.

<Figure 1>  Read setting example of MASTER-K Ethernet communication driver

Device part of  <Figure 1> input Device type(TCP/IP or UDP/IP), IP address of PLC(192.168.1.104), service port of TCP/IP(UDP/IP) protocol (fixed to 2004 for TCP, UDP = 2005 ),respectively, according to setting of PLC.

Also you can input enable of 'Error when PLC is slave' (0 : don't care, 1 : Error, default = 1),  use of 'header data size error'(0 : don't use, 1 : use, default = 0), by using option part.

 

Note) Connectoin number of TCP/IP protocol and IP address of PLC, connection waiting time can set by using by using 'Frame Editor' of LSIS.

When the PLC status is 'slave' and lots of timeout occur, you set to 'Error when PLC is salve' mode = 0 (disable).

But when you using 'Line Duplex', you can set 'Error when PLC is salve' = 1( enable ). So you can transfer to 'Master' PLC'.

 

MASTER-K Ethernet communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – don't care. ( Fixed to 0 )

2) Read memory type – memory type of PLC. ( refer to <Table 1> )

PW, MW, LW, KW, FW, TW, CW, DW, SW : WORD unit reading,

PD, MD, LD, KD, FD, TD, CD, DD, SD : DWORD unit reading,

PF, MF, LF, KF, FF, TF, CF, DF, SF : FLOAT low/high unit reading,

PF2, MF2, LF2, KF2, FF2, TF2, CF2, DF2, SF2 : FLOAT high/low unit reading.

3) Read start address – reading start address(word or double word unit) in PLC memory.  ( WORD unit reading = word unit address, DWORD, FLOAT = double word unit address )

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – word, double unit read size. maximum 509 word, 254 double word. ( WORD unit reading = word unit size, DWORD, FLOAT = double word unit size )

 

Read schedule example)

READ,     0,     P,     0,    0,  16,

READ,     0,     M,   100,   16,  16,

READ,     0,     D,     0,   50,  50,

READ,     0,     L,     0,  100,  20,

READ,     0,     K,    10,  120,  10,

 

<Table 1> is memory type and contents of MASTER-K Ethernet communication driver.

Memory type

Contents

PW, PD, PF, PF2

 word, double word, FLOAT low/high, FLOAT high/low unit of P PLC memory

MW, MD, MF, MF2

 word, double word, FLOAT low/high, FLOAT high/low unit of M PLC memory

LW, LD, LF, LF2

 word, double word, FLOAT low/high, FLOAT high/low unit of L PLC memory

KW, KD, KF, KF2

 word, double word, FLOAT low/high, FLOAT high/low unit of S PLC memory

FW, FD, FF, FF2

 word, double word, FLOAT low/high, FLOAT high/low unit of F PLC memory

TW, TD, TF, TF2

 word, double word, FLOAT low/high, FLOAT high/low unit of T PLC memory

CW, CD, CF, CF2

 word, double word, FLOAT low/high, FLOAT high/low unit of C PLC memory

DW, DD, DF, DF2

 word, double word, FLOAT low/high, FLOAT high/low unit of D PLC memory

SW, SD, SF, SF2

 word, double word, FLOAT low/high, FLOAT high/low unit of S PLC memory

<Table 1> Memory type and contents of MASTER-K Ethernet communication driver

If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part. 

<Figure 2> Example of Master-K Ethernet communication driver¡¯s Option dialogue box

 You can set read schedule by using , , button and listbox of <Figure 2>.  

<Figure 3> Example of Master-K Ethernet communication driver¡¯s read schedule Add/Edit dialogue box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can set MASTER-K PLC by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care. ( Fixed to 0 )

3)  ADDRESS          write address in memory.

 upper 3 digit = decimal unit Word address,     lower 1 digit = 0 ~ F bit position.

4)  Extra1                   write memory type = P, M, L, K, F, T.

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0011, EXTRA1 : M,  EXTRA2 : 0

The setting parameter shown above is a control(On/Off) example for 1 word, 1(2nd) bit of M memory type.

 

Write example 2) 

PORT : 0  Station : 0, ADDRESS : 0152, EXTRA1 : P,  EXTRA2 : 0

The setting parameter shown above is a control(On/Off) example for 15 word, 2(3rd) bit of P memory type.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care. ( Fixed to 0 )

3)  ADDRESS          decimal unit write address in memory.

4)  Extra1                   write memory type.

PW, MW, LW, KW, FW, TW, CW, DW, SW : WORD unit writing,

PD, MD, LD, KD, FD, TD, CD, DD, SD : DWORD unit writing,

PF, MF, LF, KF, FF, TF, CF, DF, SF : FLOAT low/high unit writing,

PF2, MF2, LF2, KF2, FF2, TF2, CF2, DF2, SF2 : FLOAT high/low unit writing. 

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0012, EXTRA1 : PW,  EXTRA2 : 0

The setting parameter shown above is word unit write setting example for 12(13th) word of P memory type.

 

Write example 2) 

PORT : 0  Station : 0, ADDRESS : 0025, EXTRA1 : MW,  EXTRA2 : 0

The setting parameter shown above is word unit write setting example for 25(26th) word of M memory type.

 

Write example 3) 

PORT : 0  Station : 0, ADDRESS : 0020, EXTRA1 : MD,  EXTRA2 : 0

The setting parameter shown above is double word unit write setting example for 20(21th) double word of M memory type.

 

Write example 4) 

PORT : 0  Station : 0, ADDRESS : 0132, EXTRA1 : DW,  EXTRA2 : 0

The setting parameter shown above is word unit write setting example for 132(133th) word of D memory type.

 

Write example 5) 

PORT : 0  Station : 0, ADDRESS : 0085, EXTRA1 : DD,  EXTRA2 : 0

The setting parameter shown above is double word unit write setting example for 85(86th) double word of D memory type.

 

Write example 6) 

PORT : 0  Station : 0, ADDRESS : 0012, EXTRA1 : DF,  EXTRA2 : 0

The setting parameter shown above is low/high order float unit write setting example for 12(13th) double word(2 byte, float) of D memory type.

 

Write example 7) 

PORT : 0  Station : 0, ADDRESS : 0005, EXTRA1 : MF2,  EXTRA2 : 0

The setting parameter shown above is high/low order float unit write setting example for 5(6th) double word(2 byte, float) of M memory type.

 

5. Connection of communication cable and main power

Connection of communication cable and main power are as follows.

 

Connection of communication cable

Please connect RJ-45 10 Base T Ethernet communication cable to RJ-45 socket of PLC such as <Figure 4>.

<Figure 4> Connection example of communication cable and main power to MASTER-K(GLOFA-GK) PLC

 

Connection of main power

Please connect 220V AC 50 ~ 60HZ power to main power connector of PLC.